package com.wang.web3.bean;

import java.util.List;

/**
 * Created by SAR on 2018/6/11.
 */

public class TransactionBean {

    /**
     * code : 0
     * data : [{"blockNum":"2441960","createTime":1528699482000,"id":1011,"parm1":"机器","parm2":"1","status":1,"txid":"0x230f5480e6b1d53fc30bf2e3c19989d7e16502cd625d8b1a892c933fc963fbc9","typeName":"OpenBoxItem","userAddress":"0x10728794d4be51c7028bc6e3128b853e4412fe38"},{"blockNum":"2441958","createTime":1528699454000,"id":1010,"parm1":"节日宝箱","status":1,"txid":"0xd25447740f924144ab522cb527fbf1b16946797a7cf183b6fa5741b96d7e0c8b","typeName":"SendKeyToBox","userAddress":"0x10728794d4be51c7028bc6e3128b853e4412fe38"},{"blockNum":"2441892","createTime":1528698470000,"id":1009,"parm1":"节日宝箱","parm2":"196","status":1,"txid":"0x328bfc96d6765366019410f49dbd8168ef91c48f5dd5ad072d35d909869d5098","typeName":"OpenBoxGirl","userAddress":"0x10728794d4be51c7028bc6e3128b853e4412fe38"},{"blockNum":"2441890","createTime":1528698434000,"id":1008,"parm1":"节日宝箱","status":1,"txid":"0x216a0803d7097c95a8651d3778896933b15982b44dce8739e754f35ca942acaf","typeName":"SendKeyToBox","userAddress":"0x10728794d4be51c7028bc6e3128b853e4412fe38"}]
     * msg : 操作成功
     * pagination : {"pageIndex":1,"pageSize":20,"totalItems":4}
     */

    private String code;
    private String msg;
    private PaginationBean pagination;
    private List<DataBean> data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public PaginationBean getPagination() {
        return pagination;
    }

    public void setPagination(PaginationBean pagination) {
        this.pagination = pagination;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class PaginationBean {
        /**
         * pageIndex : 1
         * pageSize : 20
         * totalItems : 4
         */

        private int pageIndex;
        private int pageSize;
        private int totalItems;

        public int getPageIndex() {
            return pageIndex;
        }

        public void setPageIndex(int pageIndex) {
            this.pageIndex = pageIndex;
        }

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public int getTotalItems() {
            return totalItems;
        }

        public void setTotalItems(int totalItems) {
            this.totalItems = totalItems;
        }
    }

    public static class DataBean {
        /**
         * blockNum : 2441960
         * createTime : 1528699482000
         * id : 1011
         * parm1 : 机器
         * parm2 : 1
         * status : 1
         * txid : 0x230f5480e6b1d53fc30bf2e3c19989d7e16502cd625d8b1a892c933fc963fbc9
         * typeName : OpenBoxItem
         * userAddress : 0x10728794d4be51c7028bc6e3128b853e4412fe38
         */

        private String blockNum;
        private long createTime;
        private int id;
        private String parm1;
        private String parm2;
        private int status;
        private String txid;
        private String typeName;
        private String userAddress;

        public String getBlockNum() {
            return blockNum;
        }

        public void setBlockNum(String blockNum) {
            this.blockNum = blockNum;
        }

        public long getCreateTime() {
            return createTime;
        }

        public void setCreateTime(long createTime) {
            this.createTime = createTime;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getParm1() {
            return parm1;
        }

        public void setParm1(String parm1) {
            this.parm1 = parm1;
        }

        public String getParm2() {
            return parm2;
        }

        public void setParm2(String parm2) {
            this.parm2 = parm2;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public String getTxid() {
            return txid;
        }

        public void setTxid(String txid) {
            this.txid = txid;
        }

        public String getTypeName() {
            return typeName;
        }

        public void setTypeName(String typeName) {
            this.typeName = typeName;
        }

        public String getUserAddress() {
            return userAddress;
        }

        public void setUserAddress(String userAddress) {
            this.userAddress = userAddress;
        }
    }
}
